import instance from '@/axios'

export const getHomeData = ((obj) => {
   return instance({
        params: obj,
        method:'get',
        url:'/getHomeData'
    })
})

export const getHomeDatapost = ((obj) => {
   return instance({
        data: obj,
        method:'post',
        url:'/getHomeDatapost'
    })
})

// 获取折线图数据
export const getLineData = ((obj) => {
    return instance({
         data: obj,
         method:'post',
         url:'/getLineData'
     })
 })

 // 获取柱状图数据
export const getBarData = ((obj) => {
    return instance({
         data: obj,
         method:'post',
         url:'/getBarData'
     })
 })

  // 获取饼图数据
export const getPieData = ((obj) => {
    return instance({
         data: obj,
         method:'post',
         url:'/getPieData'
     })
 })